package JAVASE523;

import java.util.Scanner;

public class money {
    public static void main(String[] argc){
        System.out.println("请输入数字：");
        Scanner sc=new Scanner(System.in);
        int num1 =sc.nextInt();
        String yuan="";
        int count=0;
        while (num1!=0){
            int ge=num1%10;
            num1=num1/10;
            yuan=bigcase(ge)+yuan;
            count++;
        }
        for (int i = 0; i < 7-count; i++) {
            yuan="零"+yuan;
        }
        String[] danwei={"佰","拾","万","仟","佰","拾","元"};
        String result="";
        for (int i = 0; i < danwei.length; i++) {
            char c=yuan.charAt(i);
            result=result+c+danwei[i];
        }
        System.out.println(result);
    }
    public static String bigcase(int num){
        String[] big={"零","壹","贰","叁","肆","伍","陆","柒","捌","玖"};
        return big[num];
    }
}